package dao;

import entity.Pet;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Component("petDao")
//@Service("petService")
@Repository("petDaoOracle")
public class PetDaoMySQLImpl implements PetDao{
    @Resource
    private PetDao petDao;
    @Override
    public int insert(Pet pet) {
        System.out.println("将宠物“"+pet.getName()+"”插入到MySQL数据库");
        return 1;
    }
}
